import {
	uniFetch,fileUpload
} from './uni-fetch'
import {
	getToken
} from "@/utils/auth"
// 获取未使用
export function getNotTokenList(data) {
	return uniFetch({
		url: '/token/getNotUse',
		method: 'get',
		data,
	})
}

// 获取已使用
export function getUsedTokenList(data) {
	return uniFetch({
		url: '/token/getUsed',
		method: 'get',
		data
	})
}


// 获取已过期
export function getPastTokenList(data) {
	return uniFetch({
		url: '/token/getExpired',
		method: 'get',
		data
	})
}
// 上传文件接口
export const reqUploadUserAvatar = filePath => fileUpload(filePath);
// 修改用户头像
export const reqUpdateUserInfo = (data) => uniFetch({url:'/member/updateImgName',method:"PUT",data})
// 实名注册
export const reqRealNameRegister = (data) => uniFetch({url:'/register',method:'POST',data});
// 获取实名认证状态
export const reqGetRealnameStatus = (data) => uniFetch({url:'/getAuthStatus',method:'GET',data});
// 银行卡ocr
export const reqGetbankCardInfo = (data) => uniFetch({url:'/ocr',method:'GET',data});
// 绑定银行卡
export const reqBindingbankCard = (data) => uniFetch({url:'/binding',method:'POST',data});
// 获取用户绑定银行卡的列表
export const reqBankCardList = data => uniFetch({url:'/selectBankCard',method:"GET",data});
// 微信小程序ORC身份证
export const reqGetIdCardInfo = data => uniFetch({url:'/idcardOcr',method:'GET',data});
// 获取二维码
export function getQrCode(data) {
	return uniFetch({
		url: '/token/getQrCode',
		method: 'get',
		data,
	})
}

// 获取通证券详情
export function getTokenDetail(data) {
	return uniFetch({
		url: '/token/getDetails',
		method: 'get',
		data,
	})
}